package com.zhuss.core.datasource2.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.core.building.SearchlBuildingBo;
import com.zhuss.bean.vo.core.building.DetaillBuildingVo;
import com.zhuss.bean.vo.core.building.ListlBuildingVo;
import com.zhuss.core.datasource1.entity.Building;
import com.zhuss.core.datasource2.dao.gen.lBuildingMapper;
import com.zhuss.core.datasource2.entity.lBuilding;

/**
 * @description: 数据库Dao
 * @author: zhushanshuo
 * @create: Sat May 29 14:12:11 CST 2021
 **/

@Mapper
public interface lBuildingDao extends lBuildingMapper {
	
	List<Building> queryList(@Param("maxIncr") Long maxIncr);
	
	void create(lBuilding record);
	
	void delete(lBuilding record);

	List<lBuilding> listAll();

	List<lBuilding> listById(@Param("lBuildingIdList") List<Long> lBuildingIdList);
	
	List<lBuilding> listByName(@Param("name") String name);
	
	List<ListlBuildingVo> list(SearchlBuildingBo bo);
	
	Integer countList(SearchlBuildingBo bo);

	DetaillBuildingVo detail(@Param("lBuildingId") Long lBuildingId);

}
